@import '@/styles/variables.scss';

.dt-controls {
  min-width: 75%;
  height: 100%;
  padding: 0 20px;
  flex: 1;
  background-image: url("~@/assets/img/tool-bar/toolbar-center-left.png"), url("~@/assets/img/tool-bar/toolbar-center-center.png"), url("~@/assets/img/tool-bar/toolbar-center-right.png");
  background-position: left top, 19px top, right top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 19px 100%, calc(100% - 38px) 100%, 19px 100%;
  display: flex;
  align-items: center;

  >div {
    height: 50px;
  }

  .animation-play {
    display: flex;
    align-items: center;
    border-right: 1px solid $-color-line;
    padding: 0 10px 0 0;

    >button {
      text-align: center;
      background: transparent;
      border: 0;
      margin: 0 2px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;

      &:last-child {
        i {
          font-size: 18px;
        }

        ::v-deep .el-date-editor {
          width: 0;
          height: 0;
          overflow: hidden;
          position: relative;
          top: -10px;
          left: -35px;
        }
      }
    }

    i {
      font-size: 22px;
      cursor: pointer;
      transition: all ease-in-out .2s;
      color: $-color-primary;

      &:hover {
        color: $-color-white;
        transform: scale(1.1);
      }
    }
  }

  .timeline {
    flex: 1;
    padding: 0 30px;
    border-right: 1px solid $-color-line;
  }

  .animation-speed {
    width: 270px;
    display: flex;
    align-items: center;
    padding: 0 10px;

    >button {
      width: 22px;
      height: 22px;
      text-align: center;
      background: transparent;
      border: 0;
      border: 1px solid $-color-line;
      border-radius: 2px;
      margin: 0 5px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;

      i {
        transition: all ease-in-out .2s;
      }

      &:hover {
        border-color: $-color-primary;
        background-color: $-color-primary;

        i {
          color: $-color-white;
        }
      }
    }

    .el-slider {
      display: inline-block;
      width: 150px;
      margin-left: 20px;
    }
  }

  ::v-deep .el-slider__runway {
    margin-top: 30px;

    .el-slider__marks-text {
      margin-top: -25px !important;
    }
  }
}
